home *** CD-ROM | disk | FTP | other *** search
/ BBS Toolkit / BBS Toolkit.iso / rbbs_pc / setup6.zip / BINK-DIR.ZIP / BINKLEY.BAT < prev    next >
DOS Batch File  |  1989-03-20  |  11KB  |  342 lines

  1.  
  2. Rem SETUP6A - Remove the Binkley.bat with SETUP6. 03/20/89
  3.  
  4. ECHO Off
  5. Rem    This makes it all go!!
  6. Rem    This file is heavily commented to explain operations.
  7. Rem    DSZ log parameter.  If you run off node 2 set it to XFER-2.DEF
  8.  
  9. SET DSZLOG=XFER-1.DEF 
  10.  
  11. Rem  Fossil driver and Video Fossil
  12.  
  13. OPUSCOMM 
  14.  
  15. Rem  Next line configures the fossil to lock at 19200.  Delete if not running
  16. Rem  HST modem with 16550A UARTs. (Command is shown for COM1) COM2 IS L2, S2
  17.  
  18. OCOM_CFG I C L1=19200 S1=1024,1024
  19.  
  20. Rem  Video Fossil to have Binkley come up in color.  If you have a problem with
  21. Rem  this, run VFOS_BIO.COM instead.
  22.  
  23. VFOS_IBM 
  24. Echo on 
  25. :Start 
  26. cd\binkley
  27. BT 
  28. If ErrorLevel 100 Goto LOCAL 
  29. If ErrorLevel  96 Goto GetRBBS 
  30. If ErrorLevel  90 Goto SendMail 
  31. If ErrorLevel  80 Goto Maint
  32. If ErrorLevel  72 GoTo GetRBBS 
  33. If ErrorLevel  70 Goto ClearOut 
  34. If ErrorLevel  60 Goto CHECK
  35. If ErrorLevel  50 GoTo Weekly
  36. If ErrorLevel  48 Goto GetRBBS 
  37. If ErrorLevel  40 Goto NightMail 
  38. If ErrorLevel  30 Goto InputMail 
  39. If ErrorLevel  24 Goto GetRBBS 
  40. If ErrorLevel  23 GoTo EchoBull
  41. If ErrorLevel  20 Goto HoldMail 
  42. If ErrorLevel  12 Goto GetRBBS 
  43. If ErrorLevel  10 Goto Start 
  44. If ErrorLevel   3 Goto GetRBBS 
  45. If ErrorLevel   1 Goto End  
  46. Goto Start 
  47. Rem  
  48. Rem  The next command loads the BBS by passing parameters thru BBSBatch.bat 
  49. Rem  to SPAWNBBS.BAT to RBBS.BAT. Sample BBSBatch.bat, SpawnBBS.Bat, and 
  50. Rem  RBBS.Bat files are with these docs.
  51. Rem  
  52.  
  53. :GetRBBS 
  54. BBSBatch 
  55. GoTo Start 
  56.  
  57. Rem  The next line will load your LOCAL (COM0) node of RBBS by pressing the 
  58. Rem  F10 Function key. Make sure you change the directory to where you have
  59. Rem  your BBS at.
  60. Rem
  61. :Local 
  62. cd\RBBS
  63. RBBS-PC.EXE 2 
  64. cd\binkley 
  65. Goto Start
  66.  
  67. Rem  InputMail looks in the \BINKLEY\FILES area for any new mail and then runs
  68. Rem  PKunPAK to deARC them (Change to ARC if that's what you'd rather use). It
  69. Rem  uses the directory listings in AREAS.BBS to determine where the messages
  70. Rem  should be copied to.  ConfMail.Out is used to determine which conferences
  71. Rem  have received mail during this event.
  72.  
  73.  
  74. :InputMail
  75. cd\binkley
  76. ConfMail Import AREAS.BBS -F ConfMail.Out -D 500 -A Pkunpak
  77. If ErrorLevel 2 Goto Severe1
  78. Rem 
  79. Rem  If Mail is received, then ConfMail returns an errorlevel of 1
  80. Rem 
  81.  
  82. If ErrorLevel 1 Goto Do_Maint
  83. Goto End_Import
  84.  
  85. Rem This program reads in ConfMail.Out and uses that to link the new messages
  86. Rem in those conferences to previous messages if they were replying to an
  87. Rem earlier message. It also compiles an EchoStat count from this mail packet.
  88.  
  89. :Do_Maint
  90. cd\binkley
  91. EchoStat -c -e \binkley\areas.bbs -F ConfMail.Out
  92. Replylnk -F ConfMail.Out
  93. Goto End_Import
  94.  
  95. Rem Now ConfMail runs again and copies these new messages to the OUTBOUND area
  96. Rem and marks them for whatever net/nodes are listed in your AREAS.BBS.  This
  97. Rem is the statement that causes mail written on your BBS to be sent back to
  98. Rem your HOST. It also pakS (OR ARCs) the messages into packets.
  99.  
  100. :End_Import
  101. cd\binkley
  102. ConfMail Export AREAS.BBS -O c:\binkley\outbound -A PKPAK -oct A
  103. If ErrorLevel 2 Goto Severe2
  104. If ErrorLevel 1 GoTo HoldMail
  105. Goto HoldMail
  106.  
  107. :Severe2
  108. Goto Start
  109.  
  110. Rem  This line runs OMMM and RBBSPACK according to SCHED A in the RBBSPACK.CTL 
  111. Rem  file. It holds all mail until the proper time of transmission. OMMM also
  112. Rem  reads the NetMail message area, copies them to the OUTBOUND area and ARCs 
  113. Rem  them up. ***** NOTE: Put YOUR Net/Node number after RBBSPACK -A8:*****
  114. Rem  
  115.  
  116. :HoldMail
  117. CD\BINKLEY
  118. OMMM -ic:\binkley\binkley.prm -mc:\binkley\messages -hc:\binkley\outbound -cc:\binkley\ommm.ctl -d
  119. RBBSPACK -A8:930/1 -SA -PC:\BINKLEY\OUTBOUND -CC:\BINKLEY\RBBSPACK.CTL -UP -LC:\BINKLEY\RBBSPACK.LOG -CH -CC -V
  120. Goto Start
  121.  
  122. Rem This line RUNS SCHED B in RBBSPACK.CTL and causes your HOST to be POLLED for
  123. Rem mail, and will also UNHOLD any mail you have for him. Change your Net/Node here too.
  124.  
  125. :SendMail
  126. CD\BINKLEY
  127. OMMM -ic:\binkley\binkley.prm -mc:\binkley\messages -hc:\binkley\outbound -cc:\binkley\ommm.ctl -d
  128. RBBSPACK -A8:930/1 -SB -PC:\BINKLEY\OUTBOUND -CC:\BINKLEY\RBBSPACK.CTL -UP -LC:\BINKLEY\RBBSPACK.LOG -V
  129. Goto Start
  130.  
  131. Rem  During Mail operations, you build up a number of small truncated files
  132. Rem  that clutter the OUTBOUND area.  This is run once each day to delete those
  133. Rem  empty files.
  134.  
  135. :ClearOut
  136. Del c:\binkley\outbound\*.$*
  137. Goto Start
  138.  
  139. Rem  This performs a Nightly maintenance at midnight that will save your 
  140. Rem  current days Binkley.LOG file by its Julian Date and start over with a
  141. Rem  new file. Customize the third line for where you want to store the files.
  142. Rem  It also looks for new nodelists and newsletters and prepares them for you.
  143. Rem  The saved file goes into C:\archive.  Change that to wherever you want.
  144. Rem  This is also a good place to add in statements for RBBS and Games maintenance.
  145. Rem  It also compiles a daily echomail bulletin
  146.  
  147. :EchoBull
  148. C:
  149. cd\binkley
  150. Echostat -e \binkley\areas.bbs -rd \binkley\EchoStat.dly -x BAD_MSGS
  151.  
  152. Rem Customize this to where you want the DAILY bulletin placed!
  153.  
  154. Copy echostat.dly c:\bullet7
  155.  
  156.  
  157. :Maint
  158. DAYNBR /-1 RENAME BINKLEY.LOG BINKLOG.@###
  159. DAYNBR /-1 PKPAK M BINKLEY.A@## BINKLOG.*
  160.  
  161. Rem Change the following line to where you want your old logs stored.
  162.  
  163. Copy Binkley.A?? C:\archive
  164. DEL Binkley.A??
  165. GoTo Check
  166.  
  167. :Check
  168. Rem Look for New Nodelist
  169. If Exist C:\BINKLEY\FILES\RBBSLIST.* GOTO NODELIST
  170. Rem Look for new Newsletter
  171. IF EXIST C:\BINKLEY\FILES\RBBSBITS.* GOTO NEWS
  172. Goto Start
  173.  
  174. :NODELIST
  175. DEL C:\BINKLEY\FILES\TEMPNODE\RBBSLIST.*
  176. CD\BINKLEY\FILES\TEMPNODE
  177. COPY C:\BINKLEY\FILES\RBBSLIST.*
  178.  
  179. Rem Set next line to wherever you want a nodelist to be held for you.
  180.  
  181. COPY RBBSLIST.* C:\ARCHIVE
  182. PKUNPAK RBBSLIST.A??
  183. ERASE RBBSLIST.A??
  184. COPY RBBSLIST.* C:\BINKLEY\RBBSLIST.NEW
  185. ERASE RBBSLIST.*
  186. CD\BINKLEY
  187. Rem Run Nodelist compiler
  188. PARSE
  189. GOTO CHECK
  190.  
  191. Rem Copies newsletter to archive file, change if you store in a different location.
  192. Rem Generally your HOST will send out a NetMail message informing you of the newsletter.
  193. :NEWS
  194. COPY C:\BINKLEY\FILES\RBBSBITS.* C:\ARCHIVE
  195. ERASE C:\BINKLEY\FILES\RBBSBITS.*
  196. GOTO START
  197.  
  198.  
  199. Rem This vreates a weekly bulletin of what echos you received
  200.  
  201. :Weekly
  202. C:
  203. cd\binkley
  204. EchoStat -e \binkley\areas.bbs -rw \binkley\EchoStat.Wky -x BAD_MSGS
  205.  
  206. Rem Customize this to where you want your Weekly bulletin placed
  207.  
  208. COPY ECHOSTAT.WKY C:\bullet8
  209. GoTo Start
  210.  
  211.  
  212.  
  213. Rem Customize the following lines for the areas YOU receive. The meaning of the
  214. Rem lines are: -D 15 (Delete messages more than 15 days old)
  215. Rem            -N 1 99 (Keep first message and delete until 99 are remaining)
  216. Rem            -R Renumber messages
  217.  
  218. :NightMail
  219. Renum -D 15 -N 1 50 -R C:\BINKLEY\MESSAGES
  220. Renum -D 2 -N 1 99 -R C:\MAIL\80XXX
  221. Renum -D 2 -N 1 99 -R C:\MAIL\A_CAD
  222. Renum -D 2 -N 1 99 -R C:\MAIL\ADAM
  223. Renum -D 2 -N 1 99 -R C:\MAIL\ASIAN-AM
  224. Renum -D 5 -N 1 99 -R C:\MAIL\ASTRONOM
  225. Renum -D 5 -N 1 99 -R C:\MAIL\AT&T
  226. Renum -D 5 -N 1 99 -R C:\MAIL\AUDIO
  227. Renum -D 5 -N 1 99 -R C:\MAIL\AUTO
  228. Renum -D 5 -N 1 99 -R C:\MAIL\AUTOMOTI
  229. Renum -D 15 -N 1 99 -R C:\MAIL\AVIATION
  230. Renum -D 5 -N 1 99 -R C:\MAIL\BAT
  231. Renum -D 5 -N 1 130 -R C:\MAIL\BIBLE
  232. Renum -D 10 -N 1 199 -R C:\MAIL\BINKLEY
  233. Renum -D 2 -N 1 99 -R C:\MAIL\BUSINESS
  234. Renum -D 2 -N 1 99 -R C:\MAIL\CBM
  235. Renum -D 5 -N 1 130 -R C:\MAIL\C_ECHO
  236. Renum -D 5 -N 1 99 -R C:\MAIL\CDROM
  237. Renum -D 5 -N 1 130 -R C:\MAIL\CHATTER
  238. Renum -D 5 -N 1 99 -R C:\MAIL\CHESS
  239. Renum -D 5 -N 1 99 -R C:\MAIL\CLIPPER
  240. Renum -D 5 -N 1 99 -R C:\MAIL\COINS
  241. Renum -D 2 -N 1 99 -R C:\MAIL\COCO
  242. Renum -D 5 -N 1 99 -R C:\MAIL\COMICS
  243. Renum -D 5 -N 1 200 -R C:\MAIL\COMM
  244. Renum -D 2 -N 1 99 -R C:\MAIL\CONSULTI
  245. Renum -D 5 -N 1 99 -R C:\MAIL\CONSUMER
  246. Renum -D 5 -N 1 130 -R C:\MAIL\CONTROV
  247. Renum -D 2 -N 1 99 -R C:\MAIL\DBASE
  248. Renum -D 5 -N 1 99 -R C:\MAIL\DBRIDGE
  249. Renum -D 5 -N 1 150 -R C:\MAIL\DEBATE
  250. Renum -D 5 -N 1 150 -R C:\MAIL\DESQVIEW
  251. Renum -D 30 -N 1 99 -R C:\MAIL\DFW_NET
  252. Renum -D 5 -N 1 99 -R C:\MAIL\DISORDER
  253. Renum -D 5 -N 1 99 -R C:\MAIL\DND
  254. Renum -D 5 -N 1 99 -R C:\MAIL\DOORWARE
  255. Renum -D 5 -N 1 99 -R C:\MAIL\DR_DEBUG
  256. Renum -D 5 -N 1 99 -R C:\MAIL\EAT
  257. Renum -D 2 -N 1 99 -R C:\MAIL\EDUCATOR
  258. Renum -D 2 -N 1 99 -R C:\MAIL\FDECHO
  259. Renum -D 30 -N 1 99 -R C:\MAIL\FIGHTBELL
  260. Renum -D 2 -N 1 99 -R C:\MAIL\FILM
  261. Renum -D 5 -N 1 99 -R C:\MAIL\FIREARMS
  262. Renum -D 2 -N 1 99 -R C:\MAIL\FOR-SALE
  263. Renum -D 2 -N 1 99 -R C:\MAIL\FOSSIL
  264. Renum -D 2 -N 1 99 -R C:\MAIL\GALAXY
  265. Renum -D 5 -N 1 99 -R C:\MAIL\GAMING
  266. Renum -D 2 -N 1 99 -R C:\MAIL\GENEALO
  267. Renum -D 2 -N 1 99 -R C:\MAIL\GOURMET
  268. Renum -D 2 -N 1 99 -R C:\MAIL\GRAND_RO
  269. Renum -D 5 -N 1 99 -R C:\MAIL\HAM
  270. Renum -D 5 -N 1 99 -R C:\MAIL\HDCONF
  271. Renum -D 2 -N 1 99 -R C:\MAIL\HDSALE
  272. Renum -D 2 -N 1 99 -R C:\MAIL\HOME
  273. Renum -D 2 -N 1 99 -R C:\MAIL\HOME-N-G
  274. Renum -D 5 -N 1 150 -R C:\MAIL\HST
  275. Renum -D 5 -N 1 99 -R C:\MAIL\HUMOR
  276. Renum -D 5 -N 1 99 -R C:\MAIL\IEEE
  277. Renum -D 5 -N 1 99 -R C:\MAIL\INSURE
  278. Renum -D 2 -N 1 99 -R C:\MAIL\JOBS
  279. Renum -D 2 -N 1 99 -R C:\MAIL\LAN
  280. Renum -D 2 -N 1 99 -R C:\MAIL\LASERPUB
  281. Renum -D 2 -N 1 99 -R C:\MAIL\LAW
  282. Renum -D 5 -N 1 99 -R C:\MAIL\LONI
  283. Renum -D 5 -N 1 99 -R C:\MAIL\LOTUS
  284. Renum -D 2 -N 1 99 -R C:\MAIL\MAIN
  285. Renum -D 12 -N 1 99 -R C:\MAIL\MANAGE
  286. Renum -D 2 -N 1 99 -R C:\MAIL\MEDIC
  287. Renum -D 2 -N 1 99 -R C:\MAIL\MENSA
  288. Renum -D 2 -N 1 99 -R C:\MAIL\MIDI-NET
  289. Renum -D 2 -N 1 99 -R C:\MAIL\MTASK
  290. Renum -D 2 -N 1 99 -R C:\MAIL\MUSIC
  291. Renum -D 2 -N 1 99 -R C:\MAIL\MUSICSYN
  292. Renum -D 2 -N 1 99 -R C:\MAIL\MOD1000
  293. Renum -D 5 -N 1 99 -R C:\MAIL\NOPIRACY
  294. Renum -D 2 -N 1 99 -R C:\MAIL\OS
  295. Renum -D 2 -N 1 99 -R C:\MAIL\PACKET
  296. Renum -D 5 -N 1 150 -R C:\MAIL\PASCAL
  297. Renum -D 5 -N 1 99 -R C:\MAIL\PCWRITE
  298. Renum -D 5 -N 1 99 -R C:\MAIL\PERFECT
  299. Renum -D 5 -N 1 99 -R C:\MAIL\PHOTO
  300. Renum -D 5 -N 1 99 -R C:\MAIL\POLITICS
  301. Renum -D 5 -N 1 99 -R C:\MAIL\PROGMR
  302. Renum -D 5 -N 1 99 -R C:\MAIL\PS_2
  303. Renum -D 5 -N 1 99 -R C:\MAIL\PURSUIT
  304. Renum -D 5 -N 1 150 -R C:\MAIL\QUICKBBS
  305. Renum -D 5 -N 1 150 -R C:\MAIL\QUIK_BAS
  306. Renum -D 10 -N 1 99 -R C:\MAIL\RBBSBITS
  307. Renum -D 10 -N 1 99 -R C:\MAIL\RBBS_DEV
  308. Renum -D 10 -N 1 99 -R C:\MAIL\RBBSMAIL_PAC
  309. Renum -D 10 -N 1 150 -R C:\MAIL\RBBS-PC
  310. Renum -D 10 -N 1 99 -R C:\MAIL\RBBS-SY
  311. Renum -D 5 -N 1 99 -R C:\MAIL\RBASE
  312. Renum -D 2 -N 1 99 -R C:\MAIL\ROBOTIX
  313. Renum -D 2 -N 1 99 -R C:\MAIL\ROUSTER
  314. Renum -D 5 -N 1 150 -R C:\MAIL\SCIENCE
  315. Renum -D 5 -N 1 150 -R C:\MAIL\SCIFOR
  316. Renum -D 2 -N 1 99 -R C:\MAIL\SF
  317. Renum -D 2 -N 1 99 -R C:\MAIL\SFFAN
  318. Renum -D 5 -N 1 99 -R C:\MAIL\SHARE
  319. Renum -D 5 -N 1 99 -R C:\MAIL\SHORTWAV
  320. Renum -D 2 -N 1 99 -R C:\MAIL\SIRIUS
  321. Renum -D 10 -N 1 99 -R C:\MAIL\SMLWARE
  322. Renum -D 5 -N 1 99 -R C:\MAIL\SPACE
  323. Renum -D 5 -N 1 99 -R C:\MAIL\SPORTS
  324. Renum -D 5 -N 1 99 -R C:\MAIL\STOCK
  325. Renum -D 5 -N 1 150 -R C:\MAIL\TECH
  326. Renum -D 5 -N 1 150 -R C:\MAIL\TRADE_WA
  327. Renum -D 5 -N 1 150 -R C:\MAIL\TREK
  328. Renum -D 5 -N 1 99 -R C:\MAIL\TV
  329. Renum -D 5 -N 1 99 -R C:\MAIL\UFGATE
  330. Renum -D 5 -N 1 99 -R C:\MAIL\UFO
  331. Renum -D 2 -N 1 99 -R C:\MAIL\VAX
  332. Renum -D 5 -N 1 99 -R C:\MAIL\VIETNAM
  333. Renum -D 2 -N 1 99 -R C:\MAIL\WAR!
  334. Renum -D 5 -N 1 99 -R C:\MAIL\WARNINGS
  335. Renum -D 5 -N 1 99 -R C:\MAIL\WHO
  336. Renum -D 5 -N 1 99 -R C:\MAIL\WILDCAT
  337. Renum -D 5 -N 1 99 -R C:\MAIL\ZMODEM
  338. Goto Start
  339.  
  340. :End
  341. cd\
  342.